Modify this program so that it writes the values in two columns, like this:
\ufeff
\ufeff
\ufeff
\ufeff
\ufeff
Total:
#include
#include
#include
#include
using namespace std;
int main
\ufeff \ufeffPrompt for the input and output file names
\ufeff cout \ufeff"Input file: \ufeffendl;
\ufeff string inputfile; cin \ufeffinputfile;
\ufeff cout \ufeff"Output file: \ufeffendl;
\ufeff string outputfile; cin \ufeffoutputfile;
\ufeff \ufeffConstruct the streams for reading and writing
\ufeff ifstream ininputfile;
\ufeff ofstream outoutputfile;
\ufeff \ufeffCheck for errors and format the output stream
\ufeff if infail \ufeffout.fail \ufeffreturn ;
\ufeff out \ufefffixed \ufeffsetprecision;
\ufeff
\ufeff \ufeffRead the input and write the output
\ufeff double total ;
\ufeff double value;
\ufeff while in \ufeffvalue
\ufeff
\ufeff out \ufeffsetw \ufeffvalue \ufeffendl;
\ufeff total \ufefftotal \ufeffvalue;
\ufeff
\ufeff out \ufeff"Total: \ufeffsetw \ufefftotal \ufeffendl;
\ufeff return ;